import App from './App'

// #ifndef VUE3
import Vue, {createSSRApp} from 'vue'

// 引入uView主JS库
import uView from "uview-ui";
Vue.use(uView);

// 请求
import request from "common/request.js"
Vue.prototype.$request = request;

// vuex
import store from "./store"
Vue.prototype.$store = store;

// 过滤器
import '@/common/filter.js'

import topVue from "./components/top.vue"
Vue.component("topVue", topVue)

import headerVue from "./components/header.vue"
Vue.component("headerVue", headerVue)
// 引入语言包
import i18n from "./language/index18.js";

import './uni.promisify.adaptor'

// 引入自定义工具
import tools from '@/common/tools.js'
Vue.prototype.$tools = tools;

// import VConsole from 'vconsole'
// const vConsole = new VConsole();
// Vue.use(vConsole)

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
    i18n,
    ...App
})
app.$mount()
// #endif


